package cn.wolfcode.wolf2w.business.service.impl;

import cn.wolfcode.wolf2w.business.api.domain.QuestionContent;
import cn.wolfcode.wolf2w.business.mapper.QuestionContentMapper;
import cn.wolfcode.wolf2w.business.query.QuestionContentQuery;
import cn.wolfcode.wolf2w.business.service.IQuestionContentService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 提问内容Service业务层处理
 * 
 * @author hyz
 * @date 2024-08-13
 */
@Service
@Transactional
public class QuestionContentServiceImpl extends ServiceImpl<QuestionContentMapper,QuestionContent> implements IQuestionContentService {

    @Override
    public IPage<QuestionContent> queryPage(QuestionContentQuery qo) {
        IPage<QuestionContent> page = new Page<>(qo.getCurrentPage(), qo.getPageSize());
        return lambdaQuery()
                .page(page);
    }
}
